<?
function getEU() {
	global $dbname, $db, $db_selected, $pre;
	
	$sql = "SELECT * from transFeatured WHERE OnHomePage = 1 LIMIT 1";
	$result = mysql_db_query($dbname,$sql);
	$row = mysql_fetch_assoc($result);
	
	$display = mySQLToExt($row[DateDisplayTill]);
	$content = $row[Body];
	$title   = $row[Title];
	
	$returnString = $title.'|'.$content.'|'.$display;
	return $returnString;
}

function saveEU($title,$content,$date) {
	global $dbname, $db, $db_selected, $pre;
	
	$date = extDateToMySQL($date);
		
	$sql = "UPDATE transFeatured SET
			Title           = '$title',
			Body            = '$content',	
			DatePost        = '".date('Y-m-d')."',					
			DateDisplayTill = '$date',
			Userid          = '".$_SESSION[UID]."'
			WHERE OnHomePage = 1";
	$result = mysql_db_query($dbname,$sql);
}
?>